<?php
/*
	[BuyPg] (C) 2010-2011 Buypg
	$Id: YouhuiCommentModel.class.php 2012-02-28 10:54:00 wufujun
*/

if (!defined('THINK_PATH')){
	exit('Access Denied');
}

class YouhuiCommentModel extends Model{
	//自动验证
	protected $_validate = array(
		array('title','require','评论标题不能为空',0),
		array('merit','require','优点不能为空',0),
		array('defect','require','缺点不能为空',0),
		array('message','require','详细内容不能为空',0),
		array('score','require','评分不能为空',0),
	);

	//自动填充
	protected $_auto = array(
		array('dateline' , 'time' , 1 , 'function'),
		array('status','1',1),
	);
}

?>
